
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>介绍 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="js基础/数据类型及判断.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Js基础部分</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="js基础/数据类型及判断.html">
            
                <a href="js基础/数据类型及判断.html">
            
                    
                    数据类型及判断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="js基础/闭包.md">
            
                <span>
            
                    
                    闭包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="js基础/块级作用域.md">
            
                <span>
            
                    
                    块级作用域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="js基础/函数提升、变量提升.md">
            
                <span>
            
                    
                    函数提升、变量提升
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="js基础/原型链.md">
            
                <span>
            
                    
                    原型链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="js基础/js继承.md">
            
                <span>
            
                    
                    js继承
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="js基础/深拷贝、浅拷贝.md">
            
                <span>
            
                    
                    深拷贝、浅拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="js基础/let、const、var区别.md">
            
                <span>
            
                    
                    let、const、var区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="js基础/async、await.md">
            
                <span>
            
                    
                    async、await
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="js基础/模块化.md">
            
                <span>
            
                    
                    模块化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="js基础/this指向问题.md">
            
                <span>
            
                    
                    this指向问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="js基础/算法.md">
            
                <span>
            
                    
                    算法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Js高级部分</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="js高级/垃圾回收机制、内存泄漏.md">
            
                <span>
            
                    
                    垃圾回收机制、内存泄漏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="js高级/事件机制、js事件绑定.md">
            
                <span>
            
                    
                    事件机制、js事件绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="js高级/事件循环.md">
            
                <span>
            
                    
                    事件循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="js高级/Promise.md">
            
                <span>
            
                    
                    Promise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="js高级/class.md">
            
                <span>
            
                    
                    class
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="js高级/同步、异步.md">
            
                <span>
            
                    
                    同步、异步
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">计算机基础</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="计算机基础/进程、线程、cpu、内存.md">
            
                <span>
            
                    
                    进程、线程、cpu、内存
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">游览器</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="游览器/游览器渲染机制、输入url,游览器执行过程.md">
            
                <span>
            
                    
                    游览器渲染机制、输入url,游览器执行过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="游览器/游览器缓存机制.md">
            
                <span>
            
                    
                    游览器缓存机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="游览器/同源策略、跨域解决问题.md">
            
                <span>
            
                    
                    同源策略、跨域解决问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="游览器/ajax原理，es6写法.md">
            
                <span>
            
                    
                    ajax原理，es6写法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">框架</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="框架/生命周期、钩子函数.md">
            
                <span>
            
                    
                    生命周期、钩子函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="框架/虚拟DOM、diff算法.md">
            
                <span>
            
                    
                    虚拟DOM、diff算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="框架/组件通信.md">
            
                <span>
            
                    
                    组件通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="框架/状态管理.md">
            
                <span>
            
                    
                    状态管理
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">webpack</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="webpack/webpack原理、常用loader.md">
            
                <span>
            
                    
                    webpack原理、常用loader
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">http</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="http/报文结构、区别.md">
            
                <span>
            
                    
                    报文结构、区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="8.2" data-path="http/网络攻击.md">
            
                <span>
            
                    
                    网络攻击
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">常见问题</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="数组去重.md">
            
                <span>
            
                    
                    数组去重
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="防抖节流.md">
            
                <span>
            
                    
                    防抖节流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="手写promise.md">
            
                <span>
            
                    
                    手写promise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.4" data-path="类型判读、深浅拷贝.md">
            
                <span>
            
                    
                    类型判读、深浅拷贝
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">前端资料</li>
        
        
    
        <li class="chapter " data-level="10.1" >
            
                <a target="_blank" href="https://underscorejs.org/">
            
                    
                    https://underscorejs.org/
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >介绍</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="readme">README</h1>
<blockquote>
<p>&#x70B9;&#x4EAE;&#x6280;&#x80FD;&#x6811;&#xFF0C;&#x5F00;&#x59CB;&#x627E;&#x5DE5;&#x4F5C;&#x3002;</p>
</blockquote>
<ul>
<li><p>js&#x57FA;&#x7840;&#x90E8;&#x5206;</p>
<ul>
<li><p>&#x6570;&#x636E;&#x7C7B;&#x578B;&#x53CA;&#x5224;&#x65AD;</p>
</li>
<li><p>&#x95ED;&#x5305;</p>
</li>
<li><p>&#x5757;&#x7EA7;&#x4F5C;&#x7528;&#x57DF;</p>
</li>
<li><p>&#x51FD;&#x6570;&#x63D0;&#x5347;&#x3001;&#x53D8;&#x91CF;&#x63D0;&#x5347;</p>
</li>
<li><p>&#x7BAD;&#x5934;&#x51FD;&#x6570;</p>
<blockquote>
<p>&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x4E0E;&#x666E;&#x901A;&#x51FD;&#x6570;&#x7684;&#x533A;&#x522B;</p>
<ol>
<li>&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x8BED;&#x6CD5;&#x66F4;&#x7B80;&#x6D01;</li>
<li>&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x672C;&#x8EAB;&#x6CA1;&#x6709;this&#xFF0C;&#x5B83;&#x7684;this&#x662F;&#x6240;&#x5C5E;&#x51FD;&#x6570;&#x7684;&#x4E0A;&#x4E0B;&#x6587;</li>
<li>&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x6CA1;&#x6709;arguments</li>
<li>&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x4E0D;&#x80FD;&#x88AB;new&#x6267;&#x884C;&#xFF0C;&#x7BAD;&#x5934;&#x51FD;&#x6570;&#x6CA1;&#x6709;prototype</li>
</ol>
</blockquote>
</li>
<li><p>&#x539F;&#x578B;&#x94FE;</p>
</li>
<li><p>js&#x7EE7;&#x627F;</p>
</li>
<li><p>&#x6DF1;&#x62F7;&#x8D1D;&#x3001;&#x6D45;&#x62F7;&#x8D1D;</p>
</li>
<li><p>let&#x3001;const&#x3001;var&#x533A;&#x522B;</p>
</li>
<li><p>async&#x3001;await</p>
</li>
<li><p>&#x6A21;&#x5757;&#x5316;</p>
</li>
<li><p>this&#x6307;&#x5411;&#x95EE;&#x9898;</p>
</li>
<li><p>&#x7B97;&#x6CD5;</p>
</li>
</ul>
</li>
<li><p>js&#x9AD8;&#x7EA7;&#x90E8;&#x5206;</p>
<ul>
<li><p>&#x5783;&#x573E;&#x56DE;&#x6536;&#x673A;&#x5236;&#x3001;&#x5185;&#x5B58;&#x6CC4;&#x6F0F;</p>
</li>
<li><p>&#x4E8B;&#x4EF6;&#x673A;&#x5236;&#x3001;js&#x4E8B;&#x4EF6;&#x7ED1;&#x5B9A;</p>
</li>
<li><p>&#x4E8B;&#x4EF6;&#x5FAA;&#x73AF;</p>
</li>
<li><p>Promise</p>
</li>
<li><p>class</p>
</li>
<li><p>&#x540C;&#x6B65;&#x3001;&#x5F02;&#x6B65;</p>
<blockquote>
<p>&#x540C;&#x6B65;
&#x4E0A;&#x4E00;&#x4E2A;&#x4EFB;&#x52A1;&#x6CA1;&#x6709;&#x5B8C;&#x6210;&#x3001;&#x4E0B;&#x4E00;&#x4E2A;&#x4EFB;&#x52A1;&#x4E0D;&#x80FD;&#x5F00;&#x59CB;</p>
<p>&#x5F02;&#x6B65;</p>
<p>&#x4E0A;&#x4E00;&#x4E2A;&#x4EFB;&#x52A1;&#x6CA1;&#x5B8C;&#x6210;&#xFF0C;&#x4E0B;&#x4E00;&#x4E2A;&#x4EFB;&#x52A1;&#x53EF;&#x4EE5;&#x7EE7;&#x7EED;&#x5904;&#x7406;&#xFF0C;&#x57FA;&#x4E8E;&#x6E38;&#x89C8;&#x5668;&#x591A;&#x7EBF;&#x7A0B;</p>
</blockquote>
</li>
</ul>
</li>
<li><p>&#x8BA1;&#x7B97;&#x673A;&#x57FA;&#x7840;</p>
<ul>
<li><p>&#x8FDB;&#x7A0B;&#x3001;&#x7EBF;&#x7A0B;&#x3001;cpu&#x3001;&#x5185;&#x5B58;</p>
<blockquote>
<ul>
<li>&#x8FDB;&#x7A0B;&#xFF08;process&#xFF09;&#xFF1A;&#x6BCF;&#x4E00;&#x4E2A;&#x7A0B;&#x5E8F;&#x542F;&#x52A8;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x3002;</li>
<li>&#x7EBF;&#x7A0B; (thread) &#xFF1A;&#x4E00;&#x4E2A;&#x8FDB;&#x7A0B;&#x4E2D;&#xFF0C;&#x53EF;&#x80FD;&#x5904;&#x7406;&#x591A;&#x4E2A;&#x4EFB;&#x52A1;&#xFF0C;&#x6BCF;&#x4E2A;&#x4EFB;&#x52A1;&#x90FD;&#x662F;&#x57FA;&#x4E8E;&#x7EBF;&#x7A0B;&#x5904;&#x7406;&#x3002;</li>
<li>&#x5185;&#x5B58;&#xFF1A;&#x6808;&#x5185;&#x5B58;&#xFF08;stack&#xFF09;&#x3001;&#x5806;&#x5185;&#x5B58;&#xFF08;&#xFF09; </li>
</ul>
</blockquote>
</li>
</ul>
</li>
<li><p>&#x6E38;&#x89C8;&#x5668;</p>
<ul>
<li><p>&#x6E38;&#x89C8;&#x5668;&#x6E32;&#x67D3;&#x673A;&#x5236;&#x3001;&#x8F93;&#x5165;url,&#x6E38;&#x89C8;&#x5668;&#x6267;&#x884C;&#x8FC7;&#x7A0B;</p>
<blockquote>
<p>&#x200B;</p>
</blockquote>
</li>
<li><p>&#x6E38;&#x89C8;&#x5668;&#x7F13;&#x5B58;&#x673A;&#x5236;</p>
</li>
<li><p>&#x540C;&#x6E90;&#x7B56;&#x7565;&#x3001;&#x8DE8;&#x57DF;&#x89E3;&#x51B3;&#x95EE;&#x9898;</p>
</li>
<li><p>ajax&#x539F;&#x7406;&#xFF0C;es6&#x5199;&#x6CD5;</p>
</li>
</ul>
</li>
<li><p>&#x6846;&#x67B6;</p>
<ul>
<li>&#x751F;&#x547D;&#x5468;&#x671F;&#x3001;&#x94A9;&#x5B50;&#x51FD;&#x6570;</li>
<li>&#x865A;&#x62DF;DOM&#x3001;diff&#x7B97;&#x6CD5;</li>
<li>&#x7EC4;&#x4EF6;&#x901A;&#x4FE1;</li>
<li>&#x72B6;&#x6001;&#x7BA1;&#x7406;</li>
</ul>
</li>
<li><p>webpack</p>
<ul>
<li>webpack&#x539F;&#x7406;&#x3001;&#x5E38;&#x7528;loader</li>
</ul>
</li>
<li><p>http</p>
<ul>
<li>&#x62A5;&#x6587;&#x7ED3;&#x6784;&#x3001;&#x533A;&#x522B;</li>
<li>&#x7F51;&#x8DEF;&#x653B;&#x51FB;</li>
</ul>
</li>
<li><p>&#x5E38;&#x89C1;&#x95EE;&#x9898;</p>
<ul>
<li><p>&#x6570;&#x7EC4;&#x53BB;&#x91CD;</p>
</li>
<li><p>&#x9632;&#x6296;&#x8282;&#x6D41;</p>
<blockquote>
<p>&#x5B9A;&#x65F6;&#x5668; </p>
<pre><code class="lang-javascript"><span class="hljs-comment">/*
* setInterval&#xFF1A;&#x4E00;&#x76F4;&#x5FAA;&#x73AF;&#x4E0B;&#x53BB;
* setTimeout&#xFF1A;&#x53EA;&#x6267;&#x884C;&#x4E00;&#x6B21;
* clearTimeout(timer)/clearInterval(timer) &#x5B9A;&#x65F6;&#x5668;&#x6E05;&#x9664;
*/</span>
<span class="hljs-keyword">let</span> timer,
    timer2
timer = setInterval(()=&gt;{},<span class="hljs-number">1000</span>)
timer2 = setTimeout(()=&gt;{},<span class="hljs-number">1000</span>)
clearInterval(timer)
clearTimeout(timer2)
timer = timer2 = <span class="hljs-literal">null</span>
</code></pre>
<p>&#x9632;&#x6296;/&#x8282;&#x6D41;</p>
<pre><code class="lang-javascript"><span class="hljs-comment">/*
* &#x9632;&#x6296;
* &#x6307;&#x5B9A;&#x65F6;&#x95F4;&#x5185;&#x51FD;&#x6570;&#x53EA;&#x6267;&#x884C;&#x4E00;&#x6B21;&#xFF0C;&#x51CF;&#x5C0F;&#x6267;&#x884C;&#x6B21;&#x6570;
*/</span>


<span class="hljs-comment">/*
* &#x8282;&#x6D41;
*/</span>
</code></pre>
<p>&#x200B;</p>
</blockquote>
</li>
<li><p>&#x624B;&#x5199;promise</p>
</li>
<li><p>&#x7C7B;&#x578B;&#x5224;&#x8BFB;&#x3001;&#x6DF1;&#x6D45;&#x62F7;&#x8D1D;</p>
</li>
</ul>
</li>
<li><p>&#x524D;&#x7AEF;&#x8D44;&#x6599;</p>
<ul>
<li>&#x5E38;&#x7528;js&#x7C7B;&#x5E93; <a href="https://underscorejs.org/" target="_blank">https://underscorejs.org/</a> </li>
</ul>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="js基础/数据类型及判断.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 数据类型及判断">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"介绍","level":"1.1","depth":1,"next":{"title":"数据类型及判断","level":"2.1","depth":1,"path":"js基础/数据类型及判断.md","ref":"js基础/数据类型及判断.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2022-03-08T03:00:57.272Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-08T02:59:19.955Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

